
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>多task的应用 · 梦里茶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="陈伟航">
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="task-he-hui-tui-zhan.html" />
    
    
    <link rel="prev" href="intent_flag.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    Android
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="./">
            
                <a href="./">
            
                    
                    activity
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="activity-si-zhong-qi-dong-mo-shi.html">
            
                <a href="activity-si-zhong-qi-dong-mo-shi.html">
            
                    
                    Activity四种启动模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="intent_flag.html">
            
                <a href="intent_flag.html">
            
                    
                    Intent Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.1.3" data-path="duo-task-de-ying-yong.html">
            
                <a href="duo-task-de-ying-yong.html">
            
                    
                    多task的应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="task-he-hui-tui-zhan.html">
            
                <a href="task-he-hui-tui-zhan.html">
            
                    
                    Task和回退栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../sqlite/">
            
                <a href="../sqlite/">
            
                    
                    sqlite
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../sqlite/cong-yuan-ma-kan-android-zhong-sqlite-shi-zen-mo-tong-guo-cursorwindow-du-db-de.html">
            
                <a href="../sqlite/cong-yuan-ma-kan-android-zhong-sqlite-shi-zen-mo-tong-guo-cursorwindow-du-db-de.html">
            
                    
                    【源码】CursorWindow读DB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../sqlite/sqlite-zai-android-shang-de-yi-ge-bug.html">
            
                <a href="../sqlite/sqlite-zai-android-shang-de-yi-ge-bug.html">
            
                    
                    Sqlite在Android上的一个Bug
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chromium.html">
            
                <a href="../chromium.html">
            
                    
                    Chromium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../listview_db.html">
            
                <a href="../listview_db.html">
            
                    
                    ListView读取DB数据最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../androidproject-jie-gou.html">
            
                <a href="../androidproject-jie-gou.html">
            
                    
                    Android Project结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../yi-ge-you-proguard-yu-fastjson-yin-qi-de-xie-an.html">
            
                <a href="../yi-ge-you-proguard-yu-fastjson-yin-qi-de-xie-an.html">
            
                    
                    一个由Proguard与FastJson引起的血案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../note.html">
            
                <a href="../note.html">
            
                    
                    琐碎的一些tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../cv/">
            
                <a href="../../cv/">
            
                    
                    Computer Vision
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../cv/feature.html">
            
                <a href="../../cv/feature.html">
            
                    
                    特征提取
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../cv/utils.html">
            
                <a href="../../cv/utils.html">
            
                    
                    计算机视觉常用工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../ml/">
            
                <a href="../../ml/">
            
                    
                    Machine Learning
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../ml/trick/">
            
                <a href="../../ml/trick/">
            
                    
                    技巧
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../../ml/trick/imgnet_1h.html">
            
                <a href="../../ml/trick/imgnet_1h.html">
            
                    
                    FaceBook: 1 hour training ImageNet
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../../ml/trick/l2_normalize.html">
            
                <a href="../../ml/trick/l2_normalize.html">
            
                    
                    L2 Norm与L2 normalize
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../ml/ncs.html">
            
                <a href="../../ml/ncs.html">
            
                    
                    实践
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../../ml/pratice/torch_best_practice.html">
            
                <a href="../../ml/pratice/torch_best_practice.html">
            
                    
                    Pytorch实验代码的亿些小细节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../ml/kit/">
            
                <a href="../../ml/kit/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" >
            
                <a target="_blank" href="https://github.com/ahangchen/GDLNotes">
            
                    
                    Tensorflow学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../../ml/kit/mxnet.html">
            
                <a href="../../ml/kit/mxnet.html">
            
                    
                    MXNet踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.3" data-path="../../ml/kit/pytorch.html">
            
                <a href="../../ml/kit/pytorch.html">
            
                    
                    PyTorch踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.4" data-path="../../ml/kit/keras.html">
            
                <a href="../../ml/kit/keras.html">
            
                    
                    Keras踩坑手记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.5" data-path="../../ml/kit/mscnn.html">
            
                <a href="../../ml/kit/mscnn.html">
            
                    
                    mscnn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.6" data-path="../../ml/kit/matlab/">
            
                <a href="../../ml/kit/matlab/">
            
                    
                    Matlab
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.6.1" data-path="../../ml/kit/matlab/ripc_auto.html">
            
                <a href="../../ml/kit/matlab/ripc_auto.html">
            
                    
                    Matlab Remote IPC自动化数据处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../ml/papers/">
            
                <a href="../../ml/papers/">
            
                    
                    Papers
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="../../ml/papers/classification/">
            
                <a href="../../ml/papers/classification/">
            
                    
                    Classification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2" data-path="../../ml/papers/reid/">
            
                <a href="../../ml/papers/reid/">
            
                    
                    Re-identification
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.2.1" data-path="../../ml/papers/reid/tfusion.html">
            
                <a href="../../ml/papers/reid/tfusion.html">
            
                    
                    CVPR2018:TFusion完全解读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.2" data-path="../../ml/papers/reid/eccv2018_taudl.html">
            
                <a href="../../ml/papers/reid/eccv2018_taudl.html">
            
                    
                    ECCV2018:TAUDL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.3" data-path="../../ml/papers/reid/cuhk_sentimes.html">
            
                <a href="../../ml/papers/reid/cuhk_sentimes.html">
            
                    
                    CVPR2018:Graph+reid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.4" data-path="../../ml/papers/reid/reid.html">
            
                <a href="../../ml/papers/reid/reid.html">
            
                    
                    Person Re-identification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.5" data-path="../../ml/papers/reid/cvpr-reid.html">
            
                <a href="../../ml/papers/reid/cvpr-reid.html">
            
                    
                    CVPR2016 Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.6" data-path="../../ml/papers/reid/reid-topo.html">
            
                <a href="../../ml/papers/reid/reid-topo.html">
            
                    
                    Camera topology and Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.7" data-path="../../ml/papers/reid/deep_transfer_learning_person_reid.html">
            
                <a href="../../ml/papers/reid/deep_transfer_learning_person_reid.html">
            
                    
                    Deep transfer learning Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2.8" data-path="../../ml/papers/reid/evaluate.html">
            
                <a href="../../ml/papers/reid/evaluate.html">
            
                    
                    Evaluate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.3" data-path="../../ml/papers/detection/">
            
                <a href="../../ml/papers/detection/">
            
                    
                    Object Detection
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.3.1" data-path="../../ml/papers/detection/rcnn.html">
            
                <a href="../../ml/papers/detection/rcnn.html">
            
                    
                    读论文系列·干货满满的RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.2" data-path="../../ml/papers/detection/sppnet.html">
            
                <a href="../../ml/papers/detection/sppnet.html">
            
                    
                    读论文系列·SPP-net
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.3" data-path="../../ml/papers/detection/fast_rcnn.html">
            
                <a href="../../ml/papers/detection/fast_rcnn.html">
            
                    
                    读论文系列·Fast RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.4" data-path="../../ml/papers/detection/faster_rcnn.html">
            
                <a href="../../ml/papers/detection/faster_rcnn.html">
            
                    
                    读论文系列·Faster RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.5" data-path="../../ml/papers/detection/yolo.html">
            
                <a href="../../ml/papers/detection/yolo.html">
            
                    
                    读论文系列·YOLO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.6" data-path="../../ml/papers/detection/ssd.html">
            
                <a href="../../ml/papers/detection/ssd.html">
            
                    
                    读论文系列·SSD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.7" data-path="../../ml/papers/detection/yolo23.html">
            
                <a href="../../ml/papers/detection/yolo23.html">
            
                    
                    读论文系列·YOLOv2 & YOLOv3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3.8" data-path="../../ml/papers/detection/other.html">
            
                <a href="../../ml/papers/detection/other.html">
            
                    
                    读论文系列·detection其他文章推荐
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.4" data-path="../../ml/papers/mono_depth/">
            
                <a href="../../ml/papers/mono_depth/">
            
                    
                    Depth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.5" data-path="../../ml/papers/3d_vision/">
            
                <a href="../../ml/papers/3d_vision/">
            
                    
                    3D vision
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.5.1" data-path="../../ml/papers/3d_vision/datasets.html">
            
                <a href="../../ml/papers/3d_vision/datasets.html">
            
                    
                    数据集相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.5.2" data-path="../../ml/papers/3d_vision/flow.html">
            
                <a href="../../ml/papers/3d_vision/flow.html">
            
                    
                    光流相关
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.6" data-path="../../ml/papers/ssah/">
            
                <a href="../../ml/papers/ssah/">
            
                    
                    Hashing
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.6.1" data-path="../../ml/papers/ssah/ssah.html">
            
                <a href="../../ml/papers/ssah/ssah.html">
            
                    
                    CVPR2018: SSAH
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4.7" data-path="../../ml/papers/overview/">
            
                <a href="../../ml/papers/overview/">
            
                    
                    大杂烩
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.7.1" data-path="../../ml/papers/overview/cncc2017.html">
            
                <a href="../../ml/papers/overview/cncc2017.html">
            
                    
                    CNCC2017 琐记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.2" data-path="../../ml/papers/overview/eccv2016_hydra_ccnn.html">
            
                <a href="../../ml/papers/overview/eccv2016_hydra_ccnn.html">
            
                    
                    ECCV 2016 Hydra CCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.3" data-path="../../ml/papers/overview/cncc_cv.html">
            
                <a href="../../ml/papers/overview/cncc_cv.html">
            
                    
                    CNCC2017深度学习与跨媒体智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.7.4" data-path="../../ml/papers/overview/mla_2016.html">
            
                <a href="../../ml/papers/overview/mla_2016.html">
            
                    
                    MLA2016笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../ml/zzh_ml_notes/">
            
                <a href="../../ml/zzh_ml_notes/">
            
                    
                    《机器学习》（周志华）读书笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="../../ml/zzh_ml_notes/melon/">
            
                <a href="../../ml/zzh_ml_notes/melon/">
            
                    
                    西瓜书概念整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1.1" data-path="../../ml/zzh_ml_notes/melon/ch01.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch01.html">
            
                    
                    绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.2" data-path="../../ml/zzh_ml_notes/melon/ch02.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch02.html">
            
                    
                    模型评估与选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.3" data-path="../../ml/zzh_ml_notes/melon/ch03.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch03.html">
            
                    
                    线性模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.4" data-path="../../ml/zzh_ml_notes/melon/ch04.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch04.html">
            
                    
                    决策树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.5" data-path="../../ml/zzh_ml_notes/melon/ch05.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch05.html">
            
                    
                    神经网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.6" data-path="../../ml/zzh_ml_notes/melon/ch06.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch06.html">
            
                    
                    支持向量机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.7" data-path="../../ml/zzh_ml_notes/melon/ch07.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch07.html">
            
                    
                    贝叶斯分类器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.8" data-path="../../ml/zzh_ml_notes/melon/ch08.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch08.html">
            
                    
                    集成学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.9" data-path="../../ml/zzh_ml_notes/melon/ch09.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch09.html">
            
                    
                    聚类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.10" data-path="../../ml/zzh_ml_notes/melon/ch10.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch10.html">
            
                    
                    降维与度量学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.11" data-path="../../ml/zzh_ml_notes/melon/ch11.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch11.html">
            
                    
                    特征选择与稀疏学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.12" data-path="../../ml/zzh_ml_notes/melon/ch12.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch12.html">
            
                    
                    计算学习理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.13" data-path="../../ml/zzh_ml_notes/melon/ch13.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch13.html">
            
                    
                    半监督学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.14" data-path="../../ml/zzh_ml_notes/melon/ch14.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch14.html">
            
                    
                    概率图模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.15" data-path="../../ml/zzh_ml_notes/melon/ch15.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch15.html">
            
                    
                    规则学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.16" data-path="../../ml/zzh_ml_notes/melon/ch16.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch16.html">
            
                    
                    强化学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.1.17" data-path="../../ml/zzh_ml_notes/melon/ch17.html">
            
                <a href="../../ml/zzh_ml_notes/melon/ch17.html">
            
                    
                    附录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../java/">
            
                <a href="../../java/">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../java/java-web/">
            
                <a href="../../java/java-web/">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../../java/java-web/servlet-zu-zhi.html">
            
                <a href="../../java/java-web/servlet-zu-zhi.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../../java/java-web/note.html">
            
                <a href="../../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../java/note.html">
            
                <a href="../../java/note.html">
            
                    
                    JNI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../java/note-1.html">
            
                <a href="../../java/note-1.html">
            
                    
                    Note
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../java/l1-new-delete.html">
            
                <a href="../../java/l1-new-delete.html">
            
                    
                    Effective Java笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../backend/">
            
                <a href="../../backend/">
            
                    
                    后端开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../backend/design.html">
            
                <a href="../../backend/design.html">
            
                    
                    架构设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../backend/db.html">
            
                <a href="../../backend/db.html">
            
                    
                    数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../backend/note/">
            
                <a href="../../backend/note/">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.3.1" data-path="../../backend/note/servlet-zu-zhi.html">
            
                <a href="../../backend/note/servlet-zu-zhi.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3.2" data-path="../../backend/note/note.html">
            
                <a href="../../backend/note/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../backend/spring_boot.html">
            
                <a href="../../backend/spring_boot.html">
            
                    
                    Spring boot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../backend/django.html">
            
                <a href="../../backend/django.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../backend/concurrent.html">
            
                <a href="../../backend/concurrent.html">
            
                    
                    分布式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../note/">
            
                <a href="../../note/">
            
                    
                    Linux && Hardware
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../note/ubuntu_init.html">
            
                <a href="../../note/ubuntu_init.html">
            
                    
                    Ubuntu安装与初始配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../note/raspbian/">
            
                <a href="../../note/raspbian/">
            
                    
                    树莓派相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.2.1" data-path="../../note/raspbian/rtlwifi.html">
            
                <a href="../../note/raspbian/rtlwifi.html">
            
                    
                    树莓派3B+无线网卡监听模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2.2" data-path="../../note/raspbian/tlwr703n_openwrt.html">
            
                <a href="../../note/raspbian/tlwr703n_openwrt.html">
            
                    
                    TP-LINK TL-WR703N v1.7 openwrt flashing
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../python/">
            
                <a href="../../python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../python/django.html">
            
                <a href="../../python/django.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../python/raw.html">
            
                <a href="../../python/raw.html">
            
                    
                    原生模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../python/design.html">
            
                <a href="../../python/design.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../../python/viz.html">
            
                <a href="../../python/viz.html">
            
                    
                    可视化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../../python/libs.html">
            
                <a href="../../python/libs.html">
            
                    
                    常用库踩坑指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../web-front/">
            
                <a href="../../web-front/">
            
                    
                    web前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../../web-front/head_content.html">
            
                <a href="../../web-front/head_content.html">
            
                    
                    header div固定，content div填充父容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../../web-front/json_res.html">
            
                <a href="../../web-front/json_res.html">
            
                    
                    json接口资源
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../ui.html">
            
                <a href="../../ui.html">
            
                    
                    UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../kit/">
            
                <a href="../../kit/">
            
                    
                    kit
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../kit/note.html">
            
                <a href="../../kit/note.html">
            
                    
                    vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../../kit/git/">
            
                <a href="../../kit/git/">
            
                    
                    git/github
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.2.1" data-path="../../kit/git/green_blush.html">
            
                <a href="../../kit/git/green_blush.html">
            
                    
                    刷爆github小绿点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../../kit/markdown/">
            
                <a href="../../kit/markdown/">
            
                    
                    Markdown/gitbook
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.3.1" data-path="../../kit/markdown/pieces.html">
            
                <a href="../../kit/markdown/pieces.html">
            
                    
                    琐碎知识点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.2" data-path="../../kit/markdown/gitbook_disqus.html">
            
                <a href="../../kit/markdown/gitbook_disqus.html">
            
                    
                    gitbook添加disqus作为评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.3" data-path="../../kit/markdown/chrome_mark2_md.html">
            
                <a href="../../kit/markdown/chrome_mark2_md.html">
            
                    
                    导出chrome书签为Markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3.4" data-path="../../kit/markdown/wx_md.html">
            
                <a href="../../kit/markdown/wx_md.html">
            
                    
                    Markdown here && 微信公众号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../../kit/latex/">
            
                <a href="../../kit/latex/">
            
                    
                    LaTex
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.4.1" data-path="../../kit/latex/note.html">
            
                <a href="../../kit/latex/note.html">
            
                    
                    LaTex琐记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../../kit/ss.html">
            
                <a href="../../kit/ss.html">
            
                    
                    科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../../kit/vmware.html">
            
                <a href="../../kit/vmware.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../thinking-in-program/">
            
                <a href="../../thinking-in-program/">
            
                    
                    thinking-in-program
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../../thinking-in-program/log.html">
            
                <a href="../../thinking-in-program/log.html">
            
                    
                    怎样打日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../star.html">
            
                <a href="../../star.html">
            
                    
                    我的收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../pieces/">
            
                <a href="../../pieces/">
            
                    
                    琐记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../../pieces/paper.html">
            
                <a href="../../pieces/paper.html">
            
                    
                    论文心得
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../support.html">
            
                <a href="../../support.html">
            
                    
                    赞赏支持
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >多task的应用</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x591A;task&#x7684;&#x5E94;&#x7528;">&#x591A;task&#x7684;&#x5E94;&#x7528;</h1>
<p>&#x8FD9;&#x90E8;&#x5206;&#x7684;&#x60F3;&#x6CD5;&#x90FD;&#x662F;&#x57FA;&#x4E8E;&#x4EE5;&#x4E0B;&#x4E24;&#x70B9;&#xFF1A;</p>
<blockquote>
<p>1.Activity&#x53EF;&#x80FD;&#x88AB;&#x590D;&#x7528;&#xFF0C;&#x53EF;&#x80FD;&#x662F;&#x590D;&#x7528;Activity&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x8FD8;&#x53EF;&#x80FD;&#x662F;&#x590D;&#x7528;Activity&#x7684;&#x72B6;&#x6001;&#xFF1B;</p>
<p>2.Task&#x7684;&#x4F5C;&#x7528;&#xFF1A;target&#xFF0C;&#x540C;&#x4E00;&#x4E2A;task&#x4E2D;&#x7684;Activity&#x670D;&#x52A1;&#x4E8E;&#x76F8;&#x540C;&#x7684;&#x6216;&#x8005;&#x63A5;&#x8FD1;&#x7684;&#x76EE;&#x6807;&#xFF08;target&#xFF09;&#x3002;</p>
</blockquote>
<p>&#xFF08;&#x4E00;&#x4E2A;task&#x7684;&#x76EE;&#x6807;&#x5F80;&#x5F80;&#x7531;task&#x7684;root Activity&#x51B3;&#x5B9A;&#xFF0C;&#x56E0;&#x4E3A;&#x662F;root Activity&#x9020;&#x5C31;&#x4E86;&#x8FD9;&#x4E2A;task&#xFF09;&#x3002;</p>
<p><strong>Activity&#x590D;&#x7528;&#x60C5;&#x666F;1&#xFF1A;</strong></p>
<blockquote>
<p>&#x5728;&#x5F53;&#x524D;App&#x4E2D;&#xFF0C;&#x901A;&#x8FC7;Intent&#xFF0C;&#x6253;&#x5F00;&#x4E86;&#x5F53;&#x524D;App&#x6216;&#x5176;&#x4ED6;App&#x7684;&#x4E00;&#x4E2A;Activity&#xFF08;standard&#x6216;singleTop&#xFF09;&#xFF0C;&#x5219;&#x8FD9;&#x4E2A;Activity&#x53D8;&#x6210;&#x5F53;&#x524D;task&#x7684;&#x4E00;&#x90E8;&#x5206;&#x3002;</p>
<p>&#x5373;&#xFF1A;&#x5728;&#x5F53;&#x524D;task&#x4E2D;&#x6253;&#x5F00;&#x4E86;&#x4E00;&#x4E2A;activity&#x3002;</p>
</blockquote>
<p><strong>&#x4F7F;&#x7528;&#x7406;&#x7531;&#xFF1A;</strong></p>
<p>&#x4E3A;&#x4E86;&#x5B8C;&#x6210;task&#x7684;&#x76EE;&#x6807;&#xFF0C;&#x9700;&#x8981;&#x65B0;&#x7684;Activity&#x7684;&#x5B8C;&#x5168;&#x53C2;&#x4E0E;&#x8FDB;&#x6765;&#xFF0C;&#x9700;&#x8981;&#x5B83;&#x6210;&#x4E3A;task&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x53EF;&#x4EE5;&#x8FD9;&#x6837;&#x5B50;&#x590D;&#x7528;&#xFF1B;</p>
<p><strong>Activity&#x590D;&#x7528;&#x60C5;&#x666F;2&#xFF1A;</strong></p>
<blockquote>
<p>&#x5728;&#x5F53;&#x524D;App&#x4E2D;&#xFF0C;&#x901A;&#x8FC7;Intent&#xFF0C;&#x4F7F;&#x7528;FLAG_ACTIVITY_NEW_TASK&#x6253;&#x5F00;&#x4E86;&#x5F53;&#x524D;App&#xFF08;&#x65B0;Activity&#x7684;task_affinity&#x4E0E;&#x5F53;&#x524D;app&#x4E2D;&#x5176;&#x4ED6;Activity&#x4E0D;&#x540C;&#xFF09;&#x6216;&#x5176;&#x4ED6;App&#x7684;&#x4E00;&#x4E2A;Activity&#xFF08;&#x975E;singleInstance&#xFF09;&#xFF0C;</p>
</blockquote>
<ul>
<li>&#x5047;&#x5982;&#x8FD9;&#x4E2A;Activity&#x6CA1;&#x6709;&#x88AB;&#x6253;&#x5F00;&#x8FC7;&#xFF0C;&#x4E14;&#x6CA1;&#x6709;&#x4E00;&#x4E2A;task&#x7684;affinity&#x4E0E;&#x8FD9;&#x4E2A;Activity&#x76F8;&#x540C;&#xFF0C;&#x5219;&#x8FD9;&#x4E2A;Activity&#x53D8;&#x4E3A;&#x65B0;&#x7684;task&#x7684;root Activity&#xFF0C;&#x521B;&#x5EFA;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x7684;task&#x3002;</li>
<li>&#x5982;&#x679C;&#x6709;&#x5176;&#x4ED6;&#x7684;task&#x7684;affinity&#x4E0E;&#x8FD9;&#x4E2A;Activity&#x76F8;&#x540C;&#xFF0C;&#x5219;&#x4F1A;&#x5C06;&#x65E7;&#x7684;task&#x8C03;&#x8D77;&#xFF0C;&#x5C06;&#x8FD9;&#x4E2A;Activity&#x5728;&#x8FD9;&#x4E2A;task&#x4E2D;&#x6253;&#x5F00;&#xFF0C;</li>
<li>&#x5047;&#x5982;&#x8FD9;&#x4E2A;Activity&#x5DF2;&#x7ECF;&#x88AB;&#x6253;&#x5F00;&#x8FC7;&#xFF0C;&#x5219;&#x4F1A;&#x5C06;&#x65E7;&#x7684;task&#x8C03;&#x8D77;&#xFF0C;&#x5982;&#x679C;&#x914D;&#x5408;FLAG_ACTIVITY_CLEAR_TOP&#x6807;&#x7B7E;&#xFF0C;&#x65B0;&#x7684;Activity&#x4EE5;&#x4E0A;&#x7684;Activity&#x4F1A;&#x88AB;&#x9500;&#x6BC1;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x6253;&#x5F00;&#x4E86;&#x4E00;&#x4E2A;&#x5168;&#x65B0;&#x7684;Activity&#x4EE5;&#x4F9B;&#x590D;&#x7528;&#x3002;</li>
<li>&#x5982;&#x679C;&#x8981;&#x6253;&#x5F00;&#x7684;Activity&#x4E3A;singleTask&#xFF0C;&#x4E0D;&#x8BBA;&#x6709;&#x6CA1;&#x6709;&#x52A0;FLAG_ACTIVITY_CLEAR_TOP&#x6807;&#x7B7E;&#xFF0C;&#x90FD;&#x6709;&#x4E0A;&#x5C42;Activity&#x51FA;&#x6808;&#x7684;&#x6548;&#x679C;&#x3002;</li>
</ul>
<p>&#x4EE5;&#x4E0A;&#x56DB;&#x79CD;&#x60C5;&#x51B5;&#x90FD;&#x53EF;&#x4EE5;&#x5F52;&#x7EB3;&#x4E3A;&#x5728;&#x65B0;&#x7684;task&#x4E2D;&#x6253;&#x5F00;&#x4E86;&#x8981;&#x590D;&#x7528;&#x7684;Activity&#x3002;</p>
<p><strong>&#x4F7F;&#x7528;&#x7406;&#x7531;&#xFF1A;</strong></p>
<p>&#x4E3A;&#x4E86;&#x5B8C;&#x6210;task&#x7684;&#x76EE;&#x6807;&#xFF0C;&#x9700;&#x8981;&#x7528;&#x5230;&#x65B0;&#x7684;Activity&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x4E2A;Activity&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x4E0E;&#x539F;&#x6765;task&#x7684;&#x76EE;&#x6807;&#x6709;&#x4E00;&#x5B9A;&#x5DEE;&#x8DDD;&#xFF0C;&#x4F53;&#x9A8C;&#x4E0A;&#x662F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5219;&#x9700;&#x8981;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;task&#xFF0C;&#x5728;&#x8FD9;&#x4E2A;task&#x5B8C;&#x6210;&#x5B83;&#x7684;&#x4EFB;&#x52A1;&#x540E;&#xFF0C;&#x65E7;&#x7684;task&#x53EF;&#x80FD;&#x5C31;&#x4E0D;&#x5173;&#x5FC3;&#x8FD9;&#x4E2A;task&#x4E86;&#xFF08;&#x6BD4;&#x5982;&#x65B0;&#x7684;task&#x4E2D;&#x7684;activity&#x53EA;&#x662F;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x901A;&#x77E5;&#xFF0C;&#x8BA9;&#x7528;&#x6237;&#x770B;&#x4E00;&#x773C;&#xFF0C;&#x770B;&#x5B8C;&#x5C31;&#x53EF;&#x4EE5;&#x4E0D;&#x7BA1;&#xFF09;&#xFF0C;&#x6216;&#x8005;&#xFF0C;&#x65B0;&#x7684;Activity&#x4E0D;&#x5E94;&#x8BE5;&#x8FC7;&#x5EA6;&#x53C2;&#x4E0E;&#x5230;&#x65E7;&#x7684;task&#x4E2D;&#xFF0C;&#xFF08;&#x6BD4;&#x5982;&#x901A;&#x77E5;&#x770B;&#x5B8C;&#x4E86;&#x5C31;&#x4E0D;&#x5E94;&#x8BE5;&#x518D;&#x5B58;&#x5728;&#x5728;task&#x4E2D;&#xFF09;&#xFF0C;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#x5C31;&#x53EF;&#x4EE5;&#x8FD9;&#x6837;&#x590D;&#x7528;&#x3002;</p>
<p>&#x4E0E;&#x7B2C;&#x4E00;&#x79CD;&#x590D;&#x7528;&#x60C5;&#x5F62;&#x8FD8;&#x6709;&#x4E00;&#x4E2A;&#x533A;&#x522B;&#xFF0C;&#x8FD9;&#x4E2A;Task&#x4E2D;&#x7684;Activity&#x5728;&#x88AB;&#x9500;&#x6BC1;&#x524D;&#x662F;&#x53EF;&#x4EE5;&#x88AB;&#x5176;&#x4ED6;task&#x91CD;&#x7528;&#x7684;&#x3002;</p>
<p><strong>Activity&#x590D;&#x7528;&#x60C5;&#x666F;3&#xFF1A;</strong></p>
<p>&#x5728;&#x5F53;&#x524D;App&#x4E2D;&#xFF0C;&#x901A;&#x8FC7;Intent&#xFF0C;&#x6253;&#x5F00;&#x4E86;&#x4E00;&#x4E2A;SingleInstance&#x7684;Activity&#xFF0C;&#x4F1A;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;task&#xFF0C;&#x4E14;&#x65B0;&#x7684;task&#x4E2D;&#x6C38;&#x8FDC;&#x53EA;&#x6709;&#x4E00;&#x4E2A;Activity&#x3002;</p>
<p><strong>&#x4F7F;&#x7528;&#x7406;&#x7531;&#xFF1A;</strong></p>
<p>&#x4E0E;&#x590D;&#x7528;&#x60C5;&#x5F62;2&#x4E00;&#x6837;&#xFF0C;&#x56E0;&#x4E3A;&#x65B0;&#x7684;Activity&#x7684;&#x529F;&#x80FD;&#x4E0E;&#x539F;&#x6765;&#x7684;task&#x7684;&#x76EE;&#x6807;&#x6709;&#x4E00;&#x5B9A;&#x5DEE;&#x8DDD;&#xFF0C;&#x6240;&#x4EE5;&#x4E0D;&#x80FD;&#x89C6;&#x4E3A;&#x540C;&#x4E00;&#x4E2A;task&#xFF0C;&#x6240;&#x4EE5;&#x8981;&#x5728;&#x65B0;&#x7684;task&#x4E2D;&#x6253;&#x5F00;&#x8FD9;&#x4E2A;Activity&#x3002;</p>
<p>&#x4F46;&#x4E0E;&#x60C5;&#x5F62;2&#x4E0D;&#x540C;&#x7684;&#x662F;&#xFF0C;&#x60C5;&#x5F62;2&#x4E2D;&#xFF0C;&#x65E7;&#x7684;task&#x4E0D;&#x5173;&#x5FC3;&#x6253;&#x5F00;&#x7684;&#x65B0;Activity&#xFF0C;&#x4F46;&#x6253;&#x5F00;&#x7684;&#x65B0;Activity&#x6240;&#x5728;&#x7684;task&#xFF0C;&#x53EF;&#x4EE5;&#x7EE7;&#x7EED;&#x521B;&#x5EFA;Activity&#x4E3A;&#x65B0;task&#x7684;&#x76EE;&#x6807;&#x670D;&#x52A1;&#xFF08;&#x6BD4;&#x5982;&#x6DFB;&#x52A0;&#x9644;&#x4EF6;&#x529F;&#x80FD;&#xFF09;&#x3002;</p>
<p>&#x800C;&#x5728;&#x60C5;&#x5F62;3&#x4E2D;&#xFF0C;&#x65B0;&#x7684;task&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x76EE;&#x6807;&#xFF0C;&#x5C31;&#x662F;&#x53D1;&#x6325;&#x5F53;&#x524D;Activity&#x7684;&#x529F;&#x80FD;&#x3002;&#x4E0D;&#x613F;&#x8FC7;&#x591A;&#x5730;&#x6267;&#x884C;&#x66F4;&#x591A;&#x529F;&#x80FD;&#xFF0C;&#x5C31;&#x9700;&#x8981;&#x4F7F;&#x7528;singleInstance&#x7684;&#x6A21;&#x5F0F;&#x3002;&#xFF08;&#x6BD4;&#x5982;&#x6253;&#x7535;&#x8BDD;&#x5C31;&#x662F;&#x7EAF;&#x7CB9;&#x7684;&#x6253;&#x7535;&#x8BDD;&#xFF0C;&#x6253;&#x5B8C;&#x7535;&#x8BDD;&#x8BE5;&#x505A;&#x4EC0;&#x4E48;&#x4E0D;&#x662F;&#x6253;&#x7535;&#x8BDD;&#x6240;&#x5728;&#x7684;&#x8FD9;&#x4E2A;task&#x8BE5;&#x5173;&#x5FC3;&#x7684;&#xFF09;</p>
<p>&#x53E6;&#x4E00;&#x65B9;&#x9762;&#xFF0C;&#x65B0;&#x7684;task&#x5728;&#x88AB;&#x590D;&#x7528;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4E0D;&#x4F1A;&#x589E;&#x52A0;Activity&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4FDD;&#x8BC1;&#x5176;&#x4ED6;task&#x91CD;&#x7528;&#x8FD9;&#x4E2A;task&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4E0D;&#x4F1A;&#x53D7;&#x5230;&#x5176;&#x4ED6;task&#x590D;&#x7528;&#x65F6;&#x65B0;&#x589E;Activity&#x7684;&#x5F71;&#x54CD;&#x3002;</p>
<p>&#x60C5;&#x5F62;2&#x548C;&#x60C5;&#x5F62;3&#x4F7F;&#x5F97;&#x521B;&#x5EFA;&#x540E;&#x7684;Activity&#x53EF;&#x4EE5;&#x88AB;&#x590D;&#x7528;&#xFF0C;&#x8282;&#x7701;&#x4E86;&#x521B;&#x5EFA;&#x65F6;&#x7684;&#x5F00;&#x9500;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="intent_flag.html" class="navigation navigation-prev " aria-label="Previous page: Intent Flag">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="task-he-hui-tui-zhan.html" class="navigation navigation-next " aria-label="Next page: Task和回退栈">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"多task的应用","level":"1.2.1.3","depth":3,"next":{"title":"Task和回退栈","level":"1.2.1.4","depth":3,"path":"android/activity/task-he-hui-tui-zhan.md","ref":"android/activity/task-he-hui-tui-zhan.md","articles":[]},"previous":{"title":"Intent Flag","level":"1.2.1.2","depth":3,"path":"android/activity/intent_flag.md","ref":"android/activity/intent_flag.md","articles":[]},"dir":"ltr"},"config":{"plugins":["disqus","github","toggle-chapters","mathjax","mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"useIdentifier":false,"shortName":"ahangchen-blog"},"github":{"url":"https://github.com/ahangchen/windy-afternoon"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"mermaid-gb3":{},"mathjax":{"forceSVG":false,"version":"2.6-latest"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"陈伟航","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦里茶","gitbook":"*"},"file":{"path":"android/activity/duo-task-de-ying-yong.md","mtime":"2021-10-01T05:23:02.313Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2021-10-03T04:31:53.922Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://cdn.staticfile.org/mathjax/2.6.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mathjax/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

